// scaup - Scala up!
// (c) 2009, Normen Müller, normen.mueller@gmail.com  
// $Id: IG.scala 3 2009-11-06 19:37:06Z normen.mueller $
package locutor.parsing.cia.ig

import java.io.File

import scaup.Views._

/** This object provides a simple interface to the impact graph parser class.
 * 
 * @author <a href="mailto:normen.mueller@googlemail.com">Normen M&#xFC;ller</a>
 * @version 0.0.1 */
private [locutor] object ImpactGraphParser extends Parser {  
  
  def parse(description: File) = phrase(ig)(new lexical.Scanner(description.content)) match {
    case Success(result, _) => result
    case n@_                => throw new Exception("IG parsing error: " + n)
  }
  
}
